package com.winit.cloudlink.storage.api.vo;

import com.google.common.collect.Maps;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import java.util.Date;
import java.util.Map;

@Data
public class TaskVo {
    @NotBlank
    private Long id;
    @NotBlank
    @Length(min = 1, max = 10)
    private String name;

    @NotBlank
    @Length(min = 1, max = 32)
    private String type;

    @NotBlank
    @Length(min = 1, max = 10)
    private String status;

    private String error;

    private Date created;

    private Date started;

    private Date ended;

    private Map<String, String> params = Maps.newHashMap();
}
